package com.amarsoft.apot.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class Student implements Serializable {
    private int id;
    private String name;
    private int age;
    private String gender;

    public List<String> convertObj2List() {
        List<String> ret = new ArrayList<>();
        ret.add(this.id + "");
        ret.add(this.name);
        ret.add(this.age + "");
        ret.add(this.gender);
        return ret;
    }
}